local skel = fk.CreateSkill {
  name = "rmt__yongmingg",
}

skel:addEffect(fk.CardUseFinished, {
  anim_type = "drawcard",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(skel.name) and player.room:getCardArea(data.card) == Card.Processing and
    data.card.suit == Card.Diamond and player:usedSkillTimes(skel.name, Player.HistoryRound) == 0
  end,
  on_use = function(self, event, target, player, data)
    player.room:obtainCard(player, data.card, true, fk.ReasonPrey, player, skel.name)
  end,
})

skel:addEffect(fk.CardRespondFinished, {
  anim_type = "drawcard",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(skel.name) and player.room:getCardArea(data.card) == Card.Processing and
    data.card.suit == Card.Diamond and player:usedSkillTimes(skel.name, Player.HistoryRound) == 0
  end,
  on_use = function(self, event, target, player, data)
    player.room:obtainCard(player, data.card, true, fk.ReasonPrey, player, skel.name)
  end,
})


Fk:loadTranslationTable{
  ["rmt__yongmingg"] = "永明",
  [":rmt__yongmingg"] = "每轮限一次，你使用或打出的<font color='red'>♦</font>牌结算完后，你可获得之。",

  ["$rmt__yongmingg1"] = " ",
  ["$rmt__yongmingg2"] = " ",
}

return skel
